<!-- quirks -->
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="renderer" content="webkit"/>
	<title>扩展对象</title>
	<link href="../ting-quirks.css" rel="stylesheet"/>
	<!--[if lt IE 9]><script src="../dist/sky-compat.js"></script><![endif]-->
	<!--[if gte IE 9]><!--><script src="../dist/sky-modern.js"></script><!--><![endif]-->
	<script src="../demo.js"></script>
</head>
<body>
<div class="container-fluid">
	<h3>localStorage</h3>
	<p>没有时间限制的数据存储，但是IE67只在同目录有效</p>
	<pre class="code">localStorage.setItem('key','value');
localStorage.getItem('key');
localStorage.removeItem('key');</pre>
	<div class="btn-toolbar">
		<a class="btn btn-primary" href="javascript:localStorage.setItem('key',prompt('记录到localStorage的值','value'))">localStorage.setItem</a>
		<a class="btn btn-primary" href="javascript:alert(localStorage.getItem('key'))">localStorage.getItem</a>
		<a class="btn btn-primary" href="javascript:localStorage.removeItem('key')">localStorage.removeItem</a>
	</div>
</div>
</body>
</html>